package com.embedsky.administrator.mycardemulation.socket;

/**
 * @Des:
 * @Author: hang.zhao
 * @Date: 2023/2/26
 */
public interface IServerListener {

    /**
     * On server start.
     *
     * @param port the port
     */
    void onServerStart(int port);

    /**
     * On server start err.
     *
     * @param port the port
     */
    void onServerStartErr(int port);

    /**
     * On finish.
     */
    void onFinish();

    /**
     * Parse data.
     *
     * @param bytes the bytes
     * @param ip    the ip
     */
    void parseData(byte[] bytes, String ip);

    /**
     * On client disconnect.
     *
     * @param ip the ip
     */
    void onClientDisconnect(String ip);
}
